proc msg:sndnotice {nick host handle arg} {
  global botnick 
  set otbn1 [lindex $arg 0]
  set botnet2 [lrange $arg 1 end]

  # If the user is not a bot co-admin
  if {![matchattr $handle m]} {
    putquick "NOTICE $nick :\0034ERROR - Permission Denied."
    return 0
  }

  if {![matchattr $handle A]} {
    putquick "NOTICE $nick :\0034ERROR - You need to authenticate first."           
    putquick "NOTICE $nick :\00312You may authenticate yourself by typing \0033\002/msg $botnick auth <your password>\002"
    return 0
  }

  if {[matchattr $handle D]} {
    putquick "NOTICE $nick :\0034ERROR - Permission Denied - Access Is Disabled."
    return 0
  }

  sndnotice $nick $otbn1 $host $botnet2
  return 0
}










